Skip to content

fix: use r.Selected instead of r.Reachable for NTP selected label - #384

Open
Aprazor wants to merge 1 commit into
prometheus-community:mainfrom
Aprazor:fix/ntp-selected-label-copy-paste
Open

fix: use r.Selected instead of r.Reachable for NTP selected label#384
Aprazor wants to merge 1 commit into
prometheus-community:mainfrom
Aprazor:fix/ntp-selected-label-copy-paste

Conversation

@Aprazor

@Aprazor Aprazor commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

All 7 MustNewConstMetric calls passed r.Reachable for both the
reachable and selected label positions. The selected label always
showed the reachable value, making it meaningless.

All 7 MustNewConstMetric calls passed r.Reachable for both the
reachable and selected label positions. The selected label always
showed the reachable value, making it meaningless.

Signed-off-by: Aprazors <Aprazors@gmail.com>
@Aprazor
Aprazor force-pushed the fix/ntp-selected-label-copy-paste branch from 80aa6cb to 076b291 Compare March 21, 2026 04:54
@bastischubert

Copy link
Copy Markdown
Contributor

sorry for reviewing late, the fix looks good to me, but the tests also need updates now - can change them as well so we can get this one merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants